package com.cyzy.service;

import com.cyzy.domain.TAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cyzy.dto.ResponseData;

/**
* @author 10204
* @description 针对表【t_address】的数据库操作Service
* @createDate 2024-11-26 00:47:45
*/
public interface TAddressService extends IService<TAddress> {
  //添加地址
    ResponseData addAddress (TAddress address);

    //查找地址
    ResponseData getAddress (int userId);

    //修改默认地址
   int updateAddress (TAddress address);

   //删除地址
  int deleteAddress (int addressId ,int userId);
  //编辑地址
  int SetAddress(TAddress address);

  //获取默认地址
  ResponseData getAddres(String userId);
}
